// import { INestApplication } from '@nestjs/common'
// import * as request from 'supertest'
import * as Spec from 'pactum/src/models/Spec'

describe('AppController (e2e)', () => {
  // let app: INestApplication<App>
  // let appFactory: AppFactory

  // // 在测试用例之前
  // beforeEach(async () => {
  //   //初始化app实例
  //   appFactory = await AppFactory.init()
  //   // 初始化数据库
  //   await appFactory.initDB()
  // })
  // // 在测试用例之后
  // afterEach(async () => {
  //   //清楚数据库表内容
  //   await appFactory.cleanupDB()
  // })
  let spec: Spec
  // let app: INestApplication
  beforeEach(() => {
    // pactum.request.setBaseUrl('http://localhost:3000')
    spec = global.spec as Spec
    // app = global.app as INestApplication
  })

  it('/ (GET)', () => {
    // const spec = global.pactum as Spec
    // return spec.get('/api/v1/auth').expectStatus(200).expectBodyContains('Hello World!')
    // return request(app.getHttpServer()).get('/api/v1/auth').expect(200).expect('Hello World!')
  })
})
